import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { CommonModule } from '@angular/common';
import { CompanyOverviewComponent } from './companyOverview.component';
import { FormsModule } from '@angular/forms';
import { CompanyOverviewService } from './companyOverview.service';
import { CompanyGlobalCompactService } from '../globalCompact/companyGlobalCompact.service';
import { CompanyService } from '../company.service';
import { ResearchService } from '../../research.service';
import { CompanyRiskRatingService } from '../riskRating/companyRiskRating.service';
import { ClusterService } from '../../riskCluster/cluster.service';
import { CompanyGovernanceService } from '../governance/companyGovernance.service';
import { ResearchOverviewComponent } from './research-overview/research-overview.component';
import { CompanyEsgService } from '../esg/companyEsg.service';

const routes: Routes = [
    {
        path: '',
        component: CompanyOverviewComponent
    }
];

/**
 * Company overview module
 *
 * Author: Sorin Spiru
 * Date: 13.01.2018
 */
@NgModule({
    providers: [
        CompanyService,
        ResearchService,
        CompanyOverviewService,
        CompanyGlobalCompactService,
        CompanyRiskRatingService,
        ClusterService,
        CompanyGovernanceService,
        CompanyEsgService
    ],
    imports: [
        CommonModule,
        FormsModule,
        RouterModule.forChild(routes)
    ],
    declarations: [
        CompanyOverviewComponent,
        ResearchOverviewComponent
    ]
})
export class CompanyOverviewModule { }
